Ext.namespace("org.microsite.fileset");

FileSet.prototype.getType = function() {return 'FileSet';};

org.microsite.util.ViewRegistry.add(new org.microsite.util.ViewHelper({
    type : FileSet,
    service : FileSetRemote,
    editor : org.microsite.fileset.FileSetEditor,
    template : new Ext.XTemplate('<table border="0" cellspacing="5">',
            '<tr><td><b>Name</b></td><td>{name}</td></tr>',
            '<tr><td><b>Description</b></td><td>{description}</td></tr>',
            '<tr><td><b>Path</b></td><td>{path}</td></tr>',
            '<tr><td><b>Server</b></td><td>{server}</td></tr>',
            '</table>'),
    fields : [{name:'id'},{name:'name'},{name:'description'},{name:'path'},{name:'server'}]
}));
